#!/bin/bash

#
function test1(){
  if [ -z '' ];then
    echo '12312312'
  fi
}

#
function test2(){
  if [ -z '' ];then
    echo '12312312'
  else
    echo '12312'
  fi
}

test1